//公共管理用户登录相关信息

//获取token
export const getToken = () => {
	var userToken = uni.getStorageSync('token') || ""
	return userToken;
}


//存储token信息
export const setToken = (token) => {
  uni.setStorageSync('token',token)	
}



//判断是否登录
export const hasToken = () => {
	var userToken = uni.getStorageSync('token') || ""
	if (userToken == "") {
		return false
	}
	return true;
}


/* export default  {
	getToken,
	setToken,
	hasToken
} */